package com.chapter6.jiekou.demo5;

public class Mainboard {
    private Cpu cpu;
    private GraphicsCard graphicsCard;

    public Cpu getCpu() {
        return cpu;
    }

    public void setCpu(Cpu cpu) {
        this.cpu = cpu;
    }

    public GraphicsCard getGraphicsCard() {
        return graphicsCard;
    }

    public void setGraphicsCard(GraphicsCard graphicsCard) {
        this.graphicsCard = graphicsCard;
    }

    public void run(){
        cpu.calculate();
        graphicsCard.display();
    }
}
